'use strict';

function average_uneven(collection) 
{
  let t=0;
  let a=0;
  for(let i=0;i<collection.length;i++)
    {
      if(collection[i]%2!=0)
        {
          t+=collection[i];
          a+=1;
        }
    }
  t/=a;
  return t;
}

module.exports = average_uneven;
